﻿#ifndef CMDLINECHARTCOMPUTEEFFECTIVENESS_H
#define CMDLINECHARTCOMPUTEEFFECTIVENESS_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartComputeEffectiveness : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartComputeEffectiveness();
            ~CmdLineChartComputeEffectiveness();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(QString graphNames, double e0) { 
                m_graphNames = graphNames;
                m_e0 = e0;
            }

        private:
            QString m_graphNames{};
            double m_e0{};
    };

} // namespace PostCommand

#endif
